package com.jax.pronet.bo;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlAccessorType(value = XmlAccessType.FIELD)
@XmlRootElement(name="Programmer")
public class Programmer {

  @XmlTransient
	private int id;

  @XmlAttribute
	private String name;

  @XmlElementWrapper(name="Skills")
  @XmlElement(name="Skill")
	private List<String> listOfSkills;
	
  @XmlElementWrapper(name="Recommendations")
  @XmlElement(name="Recommendation")
	private List<String> listOfRecommendations;

	public Programmer(int id, String name, List<String> listOfSkills,
			List<String> listOfRecommendations) {
		super();
		this.id = id;
		this.name = name;
		this.listOfSkills = listOfSkills;
		this.listOfRecommendations = listOfRecommendations;
	}

	public Programmer() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getListOfSkills() {
		return listOfSkills;
	}

	public void setListOfSkills(List<String> listOfSkills) {
		this.listOfSkills = listOfSkills;
	}

	public List<String> getListOfRecommendations() {
		return listOfRecommendations;
	}

	public void setListOfRecommendations(
			List<String> listOfRecommendations) {
		this.listOfRecommendations = listOfRecommendations;
	}

	@Override
	public String toString() {
		return "Programmer [id=" + id + ", name=" + name + ", listOfSkills="
				+ listOfSkills + ", listOfRecommendations="
				+ listOfRecommendations + "]";
	}
	
	
	
}
